package com.pollux.entity;

import javax.validation.constraints.NotNull;

import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * @TableName fans
 */
public class Fans implements Serializable {

    /**
     * 主键
     */
    @NotNull(message = "[主键]不能为空")
    @Schema(name = "id", description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer id;

    /**
     * 自己的用户id
     */
    @NotNull(message = "[自己的用户id]不能为空")
    @Schema(name = "userId", description = "自己的用户id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer userId;

    /**
     * 粉丝的用户id
     */
    @NotNull(message = "[粉丝的用户id]不能为空")
    @Schema(name = "fansId", description = "粉丝的用户id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer fansId;
}
